Extended functionality to handle triple digit numbers. (0-999)
Added tests