Upgrade

Reduce code, delete Brain class.