Output of the codes

![plot1](https://cloud.githubusercontent.com/assets/7637348/3196442/b400c9a0-ed2c-11e3-9299-5ff9a07a2b8f.png)
![plot2](https://cloud.githubusercontent.com/assets/7637348/3196443/b5d91a0c-ed2c-11e3-86e8-24d713562052.png)
![plot3](https://cloud.githubusercontent.com/assets/7637348/3196444/b6efa69a-ed2c-11e3-8bf3-fdc1a4f6b6c9.png)
![plot4](https://cloud.githubusercontent.com/assets/7637348/3196445/b81daf44-ed2c-11e3-8fbc-fd5230de446c.png)