Designing Tasks in Secondary Education: Enhancing subject understanding and student engagement