Creating a new comment object rather than using a dictionary