Some different Lejos (Java) code for the Lego NXT.