simple exercise on creating objects