incorporate raising error when parameters are invalid for a triangle