removed pointers in constructor to get rid of problem. now working on keyExists. I love coding <3