created average_rating method for the video model; minor improvements to the code