beamplane example with MPC