Modelling Systems with Intentional Dynamics: A Lesson from Quantum Mechanics