Rectangle stuff from class CIS220