added private and public to class