added second and third figures. removed more irrelevant parts