Fixed errors, now compiles