Object oriented code examples