Learning through exploration