Compiled and running, but not quite working correctly.