Chainable attributes

Fixes #1.