a days work on prog3
Finished prog 3