Write a guide for teachers on creating a flipped classroom. Include step-by-step instructions on how to record lectures, design interactive in-class activities, and use digital platforms to support independent learning outside of class. Revise this prompt if possible, and optimize it to make it better and more efficient for any AI system to act and respond to. If possible run your optimized version.