Two required functions were written and tested