add a beamer code