working 5) solution