modified 131 to use std::bind.