First Input to assignment

Core code of the assigment