add hw3 which passes all test