Add explore method to Shape class.