basic encapsulation