Fixed duration method
Merge https://github.com/qqliu/S13-R08-11am-yellow
Fixed duration problem
Merge pull request #19 from qqliu/master

Fixed rest compile issue #4. Good!