Add initialize method to Promise class

A more readable way to define Promise