This video shows the steps to convert your model into a subsystem with inports and outports. In the later part of this video it shows how the subsystem block can be converted into a library block which can be later shared by others or in other models.
We will be glad to hear from you regarding any query, suggestions or appreciations at: programmerworld1990@gmail.com