Started to add implementation for a triangle. Doesn't currently work