changed 'data' private member to 'key' in order to favor COrmen's notation.