made some changes in the findmax class to attributes and filtering method