Restructured generate key method (created printKey() method)