Added a new function for creating Calendar objects