Using a method to carry out operation