Implementation of Categories class