Make code more robust and add a sample triangle