Here, only your doubts/suggestions/errors/exceptions can be sovled. If you wanted whole code, then probably this is not the place and you can get it from net. Start working on it and if you struck we are ready to make you finish off it. (You should learn it before doing such things.) :)
No pain, No gain.
OCJP 1.6, Liferay Certified Developer 6.1