add getting articles by categories function