Working example of MPG with plots