Modifications in Report TP 3, program for question 1 and 3.