Team 4 solution