Formatted code to make it closer to Sun's expecifications.