Code third phase

Code third phase. Workflow done