Created Instance varibles, instead of passing as parameters. Added some lines of comments