I know similar questions have been asked bunch of times, but I spent some time reading similar questions and couldn\'t find a proper answer.
Here\'s the code: