numberinput inherits class