put the executable code in a method