State machine teaching repository