Encapsulated all members in Interaction class.