Class BetweenFunction