Posting my code for HW3