progress on prob 4