Simplify

But I don't understand how to use promise yet...