Add model file and write controller