problem2 output
problem2 modified