Refactored classes. Fixed memory problem. Simplified model.