lab5 working on Triangle