pendulum code improvement
merging summery.tex