Homework 4 problems