finshed almost model and controller, view will be finish tommorrow