use implicit value class
Merge pull request #1008 from xuwei-k/implicit-value-class

use implicit value class