Formatted code

This netbeans thing might not be so bad.