updated MethodDemo