first version of discount calculator using sys