Cooking ham with cloves and pineapple