Main class and Reset class code added