try{
checkButton = new Button(17, "CheckMail Button");
newMailLed = new Led(18, "New Mail Arrived");
checkMailLed = new Led(23, "Checking Mail");
checkButton.setInputListener(new PinListener(){
public void valueChanged(PinEvent event){
System.out.println(checkButton);
checkMailLed.on();
newMailLed.off();
try {