Ontogenetic Analysis of Learning in a Simple System