An architectural model of the Lego NXT