I built this project with the help of a tutorial on YouTube. Credits to Just Finished Coding for sharing such a clear tutorial. Here is the link to his website.