created Pallet class in java app