with property wrapper this code could be simplified. It would be nice if you at least add an example to readme