ex3 for python by example self class