Added exercise 3 code to tex document.
Added input prompt for exercise 2.
Completed code for exercise 2.
Imported code into tex document.
Added more to exercise 3 for tex document.