Created class for VideoPost and added error handling for post ID