Homework 2 finished
Fixed minor thing with contents method