enterNumber method updated.

enterNumber method updated.