finished triangle area function
changing p area function