Homework 1, 2 and 3.

Like the title says, dat homework.