using the equal class intervals