Fixed bug in inheritance
Added horizontal demo