Add in_between(min, x, max)
Validate input
Refactoring