Define methods like categories=