Implemented Calendar::check function