added new classes for calculating precision and recall