Extract class in Program class to lib.controller.Controller