Fixed the Rest by implementing the duration method