added rectangle and triangle example