Simple model fitting Java Application