nearly finished the project, except xaxis tics in last plot