Code made for Undergraduate Research Study in UCSC physics lab