added public modifer to class