Started work on submit function
Almost complete