added frame for agent creation; and frame for main method