Fix: allowed writeln(0), improved discount example