wrote function 3

@another_reviewer