This is homework assignment 6 for Fall 2013 Stanford CS193 class