scripts for some engineering problems