added date to example. updated types.