Hi, your task is not that simple But this post is a good starting point for your task:
If you get stuck somewhere, just ask again here