Assignment submission - added functions and tested