Implemented basic program structure