creating a user and room class, to make code cleaner