finished gruntwork for problem 6 on 216 hw