add function for checking wich classes have calendar