made rectangle class and made square a subclass