adding in java cookbok