Current partially working solution

Need to work more on the process logic