Code for Ch12

promises and time entries