added necessary Rectangle classes