Initial program

The first working code. More functionality to be added.