update my learning code