Put calculate method in Category.