added problem 0502
fixed problem 0502