Submitting assignment

Adding function code to submit assignment