Second version. Skeleton of program