implement readonly attribute
Merge pull request #10 from gmkou/readonly_attribute

implement readonly attribute