sample project on spinning mill in java