My homework 3 code

This is my resulting code after finishing homework 3. It needs to be
worked on later this week.