I am having a simple issue which I think is just my compiler being stubborn, I am using a switch statement and creating a different object based on which case is run. My problem is the compiler gives an error because I am using the same variable name in all 5 cases. Is there any workaround to this, I know how I can work around it by changing the variable name in each case but I am trying to keep my program as simple as i can. Thanks for your help