ex5_14 decimal version done