mini shell programming (help)

Hi All,
Well i m a taking an operating system course (newbie to unix)
we have studied till now: the fork () execv()
the teacher asked us to create a mini shell that execute a user command:

cmd1 [<input] [ !cmd2][>output]

he said everything in [] is optional we can use any combination

Well dudes , i m really in a big trouble,can someone help me to start writing the proram or telling me exactly what to do ??

thanks in advance

sorry Dude i have just read rule #6
i really apologize but i needed an urgent help in order to start working n it

Now that you have discovered that the rules are violated, I have to lock this thread. A positive reply would violate the rules again.