Update Problem 2.R