Created basic hash function. It repeats numbers, so it needs improvement.