Creating an complex appointment template