Design a STEM curriculum for a middle school class. Incorporate topics in science, technology, engineering, and mathematics. Ensure the curriculum includes hands-on experiments, projects, group activities, and real-world applications. Create a timeline for implementation over one semester. 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.