added the basic codes on both backend and frontend.