shaded state machine in exam and fixed typo