adding slots to custom objects