started implementing different learning layers in main functions.