'''
User class for the password locker account
'''

class User:

    '''
    class used as a blueprint to generate other user accounts
    '''

    user_list = []

    def __init__ (self,username,password):

      '''
      method to define properties for the user class objec
      '''
    
      self.username = username
      self.password = password

    def save_user(self):
      '''
      method that adds a new user to the user list
      '''
      User.user_list.append(self)

    @classmethod
    def user_exist(cls,username):

      for user in cls.user_list:
        if user.username == username:
          return True
