Gravar-mail: Development of goal-oriented behavior in self-learning robots