methods problem 1