first version of the program code