First version of programm