ex6.py lpthw added