added validation class with isPositive method