Added functions for displaying parallelogram and non-right triangle exercises. Added sanity checks.