Stanford assignment-1