public function setProperties($properties){
    // Update object with incoming values, if any
    if(!empty($properties)){
      foreach($properties as $key => $val){
        $this->$key = $val;
      }
    }
  }