save sample problems into local storage