hw3 written problems