Implementing range checking - closes #2244
Adding first example of using range checking