Design a program structure for generating actions for each method.