hw3 second version