added getByCategory method