Finished

Finished Homework 1. Works perfectly.