calendar magic and first working version