added res for assignment 2