Design pattern on python. Course work.