final homework 2 version