basic version
v1 works for positive integer
add test cases