first draft of the code working doing some hashing