Version 1.0

Initial working code