added MethodModel and tests