revised assignment 2