put program in a method to be called