Ex3: done
added pause statement to improve interaction and added more comment
report tex files modified