add general operation for custom-number
add testing for custom-number