Simple stack solution