horizontal example has been detailed with comments