Written stackAgenda using Stack implementation