Begin to implement the code to commit while exercises are switched. It's not working yet.