Added operation functions and switch case