I'll be adding my code for practical file here. Feel free to contribute, add code if you have better approaches.