Starting to work!

Needs unit tests though....
More example code!