class and public added