ex2 for python by example self class