Fixes #4.
Throw an ArgumentOutOfRangeException if the value is below 0 or above 50