added code for recitation3