add class declaration andd definition