model

fixed so that negative numbers aren't allowed.