added ch02 triangle demo