added homework2 and associated output