code related to test 4