tried to make public method in lab1