updated written assignment 1