implement number judgement and test