OfCateogry() takes exactly 2 arguements error

How are you passing the doc?