Rectangle and triangle properties