demo triangle initial code

triangle demo build code