finished first two labs, will do error checking and commenting later