Code for lab sessions