i spent half an hour on this
370