There are a million ways to do this. And if its an assignment, i am pretty sure your teacher knows what he is doing but assigning you this.
i need some help in my assignment
Again all you are telling me here is that you want me to do your assignment. I would love to do that, for about 75$ an hour, otherwise try it on your own. When you actually encounter a problem, post it and ask a specific question.