added triangle area funciton