Started finally implementing the code..