finished problem set 4