Better structure

Cleaner and easier to maintain.
What if you want the stack using the API then?