First version of program