Code for Phys 260L