added method [] for message