added functions to generate hyphen and class generatePasswordH