code for labs