added for loops, that iterates over however many hashfunctions we want.