Staircases: minor update of I/O part.
Discrete function

Erlang implementation