Custom logic added to category model