now 3 plots with appropriate plot functions
implementing optimization procedure into module