Homework 7/8

Doesn't work but I figured I'll turn something in...