adding defs for lab2.
Adding defs for lab2