fixed homework2