can take input as integer
(input as fraction need to be addressed)