add switch and an exercise in basic