17-NAME2.py a little bit refactored, not much optimized