add __repr__ and add examples