Fixed errors, compiles, passes all tests.