finished code for computational physics projects