solution for homework1