adding JSON serialization methods to the models; changing slugify