Basic working implementation.

Compiles and works in Eclipse, but not javac...debugging to commence