Cognitive Agents Behaving in a Simple Stock Market Structure