Object class exercise