homework2 revision 2