adding own method to compute area of polygon