wrote,tested, generated plots with learning curve function