Added basic example using deferreds and callbacks