add switchClass method