Homework 1 with extra credit