Justin Reed hw#4

If i is out of range, you need to throw an exception.