added the code for the calculation of some constants and the start of calculating T