Finished the first half of hw3