implemented Inequalities class with tests