solution problem 4
test script problem 4