Added code to complete Assignment #3

This is good because now I am done with the homework and will enjoy a beer.