text: 
  //constructor Function for beer
  function Beer(input) {
    this.name = input.name;
    this.beer_id = input.id;
    this.abv = input.abv ? input.abv : 0;
    this.ibu = input.ibu ? parseInt(input.ibu) : 0;
    this.time_stamp = Date.now();
    this.style_id = input.style.id;
    this.brewery_id = input.breweries[0].id;
  }
  //constructor function for beer style
  function Style(input) {
    this.id = input.id;
    this.name = input.name;
    this.description = input.description ? input.description : 'Style description not available';
    this.abvmin = input.abvMin ? input.abvMin : 0;
    this.abvmax = input.abvMax ? input.abvMax : 0;
    this.ibumin = input.ibuMin ? parseInt(input.ibuMin) : 0;
    this.ibumax = input.ibuMax ? parseInt(input.ibuMax) : 0;
    this.time_stamp = Date.now();
  }
  //constructor function for brewery
  function Brewery(input) {
    this.id = input.breweryId;
    this.brewery = input.brewery ? input.brewery.name : 'Not Avaliable';
    this.website = input.brewery.website ? input.brewery.website : 'Not Avaliable';
    this.image = input.brewery.images ? input.brewery.images.squareMedium.replace(/http:\/\//i, 'https://') : '/img/alcohol-alcoholic-beer-1161466.jpg';
    this.lat = input.latitude;
    this.long = input.longitude;
    this.time_stamp = Date.now();
  }
  //constructor function for location
  function Location(input, location){
    this.search_query = location;
    this.lat = input.lat;
    this.long = input.lng;
  }
  //constructor function for user reviews
  function Review(input) {
    this.beer_id = input.beer_id;
    this.note = input.review ? input.review : '';
    this.rating = input.rating !== 0 ? input.rating : 0;
    this.time_stamp = Date.now();
    this.gf = input.gf === 'on' ? true : false;
  }
  //exports
  module.exports = {Beer, Style, Brewery, Location, Review};
  