first version of the program done