code for learning1