Classified the Code, tried to make it more readable