Implements a basic version of a triangle soup! :)