added beams code and graphics