I Added the Original Source Code made by the professor. If you notice
the head is never empty