added __name__=='__main__' clause