I had forgot to add the constructor for the class it worked fine after I added it. Thanks for the help.