Creating the Pics model and controller