Modified the getArea, getPerimiter and hashCode