def retrieve() -> Optional[BankAccount]:
    try:
        with open(file='stored_account.yml', mode='r') as file_account:
            account_importer = yaml.load(file_account)
            account = BankAccount()
            account.open()
            account._balance = account_importer['_balance']
            return account
    except FileNotFoundError:
        return None