Create beam.cpp