added __name__ == '__main__' statemts #1