Code for lab