Model-fitting Java App