assignment 2 beta code