First version of the working program.