Problem Set 8 & 9: done