Trying to find a better solution to getting the User class