Completed code and passed all the tests