hw3 2.2 working