working on input validation

* first arg must be integer < 3

* ClassCastException thrown if cannot convert to number