got class working with example