took the functions out of the example triagle and square added a couple more functions