Come up with a question and stream of consciousness reasoning that would justify this answer: Sheeran

Show your work and conclude with the exact phrasing "Therefore, the final answer is [answer]." where [answer] is just the final number or expression that solves the problem.
user
The question is: "Perfect" was the first track Sheeran wrote for his third studio album ÷. The song is a romantic ballad written about his girlfriend Cherry Seaborn, whom he knew from school and reconnected with when she was working in New York. Sheeran revealed that the inspiration for the lyrics came after visiting James Blunt's house in Ibiza, where the two singers had listened to the rapper Future's music at six in the morning. He said: "Barefoot on the grass, dancing to our favorite song, which happened to be Future's "March Madness" ... I booked the studio for the day, and I had that and I was like, right, let me just flesh that out. And the song happened and was sort of finished that day. I knew it was special."

Answer this question: who wrote the song perfect that ed sheeran sings?
Stream of consciousness: To answer the above question, the relevant sentence is: "Perfect" was the first track Sheeran wrote for his third studio album ÷.
