classes key generator