Made PasswordGenerator a class from the module version.