adding triangle area function