copied and replaced labscec from  datastructures lab