text: var Pizza = require('../models/pizza');
  
  var data = {};
  
  // initialize data store with bootstrapped data
  function init () {
    data.quotes = require('../mock/quotes');
    initPizzas(function (pizzas) {
      data.pizzas = pizzas;
    });
  }
  
  function getQuotes (ticker) {
    return data.quotes[ticker];
  }
  
  function getAllQuotes (callback) {
    if (callback) {
      callback(null, data.quotes);
    }
  }
  
  function getPizzas (callback) {
    if (callback) {
      callback(null, data.pizzas);
    }
  }
  
  function getPizza (ticker, callback) {
    if (callback) {
      callback(null, data.pizzas[ticker]);
    }
  }
  
  function initPizzas (callback) {
    var pizzas = require('../mock/pizzas'),
      realPizzas = {},
      startingDate = new Date();
  
    pizzas.forEach(function (pizza) {
      realPizzas[pizza[0]] = new Pizza(startingDate, data.quotes[pizza[0]], ...pizza);
    });
  
    callback(realPizzas);
  }
  
  module.exports = {
    init,
    getQuotes,
    getAllQuotes,
    getPizzas,
    getPizza
  };
  