add check numbers method with Rspec test