implement switch statement
update readme with info on switch statement