Functionality to switch users between different classes