made calendar a class member variable