d table square and triangle