Added init of values and checked for upper bound