Class with example