class User:
  '''
  Class that generates new instances of users
  '''
  users = []
  
  def __init__(self, login_username, password):
    '''
    ___init___ method that helps us define properties for our objects.
    Args: 
      name: New user name
      password: New user password
    '''
    self.login_username = login_username
    self.password = password

  def save_user(self):
    '''
    save user details method saves user object into users
    '''
    User.users.append(self)

  @classmethod
  def authenticate_user(cls, name, password):
    '''
    authenticate user loginname and password 

    Args: 
      login_username : name used by user to login
      password: password for the user

    Returns: 
     password
    '''
    for user in cls.users:
      if user.login_username == name and user.password == password:
        return password
    
  
  
  