Course assignment 2