code for computing the category specific features...