First version of the password generator