added triangle example and power example