User class is now a parameter