text: 'use strict';
  
  const mongoose = require('mongoose');
  
  var kittySchema = mongoose.Schema({
    name: String
  });
  
  kittySchema.methods.speak = function () {
    var greeting = this.name
      ? 'Meow name is ' + this.name
      : 'I don\'t have a name';
    console.log(greeting);
  };
  
  module.exports = mongoose.model('Kitten', kittySchema);