Program for checkpoint 2