Use `lambda` for named scope

Fix #31