Adding stack library