Main Java file