- added methods to manage memory
- added some interfaces