Started work
First draft of complete code