how to calculate  the area of a rectangle, parallelogram and triangle ?