First version of the stack layout done