Added code to handle double digit amount.
Added tests for that.