First version for program nr 2