Final working version with 2 stacks