Design a stack when building a complex application