created program model and controller