Square inherits from Rectangle, so that we only need to pass Square class one instead of two arguments.