Recommended
This post explains how to write the header, source and…