hw3 and 4