Posting Code for Homework 3