ex1 for python by example self class