Corrections in the class of Triangle and Rectangle class.