practice for lab assignment 2 of cpsc310