Added Triangle Fucntion
merge