Refactored User class and get_all_users method