calendar encapsulation