Replace method with method object