First pass of learning_switch.py