Removed main() from HashFunction and reduced the no. of instance variables