I compiled fine. Try putting it in a directory together and using the command:
Edit: I also ran it, it seems to work okay so far. Good job!
The compiler needs to be able to "find" all the methods called at compile-time.... I'm pretty sure. That's why it won't compile separately.