Adding calendar code