First part of the program