It now compiles and runs...  but still doess't quite work