Completed code for managing language data