Add partner?, same? and equal? methods to Shape class.