3.11 rectangle and triangle recognize