Added pseudo code and initial code