created a function get_area which takes params to compute the area of three different types of shapes.