Update method2.r