Problems 8 and 10 done