Working with class, example