added optimizer.py and init.py