All assignment 1 functions working correctly!