Method class created. Refactor