Compiles and runs properly now