solution problem 5
temp script problem 5