Passing the three given tests.