Main Java class