Classic stack structure implementation