Create category.cpp

Implementation of category.h