More work on dp tutorial