Added footers and methods for calculations(not finished).