Code for passing Test 4 introduced