adding true-false and triangle code