Simple codes from my Python classes for reference.