Assignment functions written and tested