Using swith->case in main func