two more functions added to class