Created card model and controller