added another function from ex06