class Blob {
public:
    Blob();
    Blob(int val);

    void update(int change);
    int value();

private:
    int n;
};



#include "Blob.h"

Blob::Blob() {
  n = 42;
}

Blob::Blob(int val) {
  n = val;
}

int Blob::value() {
  return n;
}

void Blob::update(int change) {
   n = n + change;
}


#include "Blob.h"
int main() {
  Blob a, b;
  Blob c(17);
  
  b.update(2);
  c.n++;

  cout << a.value() << endl; 
  cout << b.value() << endl;
  cout << c.value() << endl;

  return 0;
}