Added code to a method