Encapsulated functions inside related objects