Use the magic method __get

Fixes #3