nick's triangle code