The main function of the program for learing