I am not sure where the third name comes from, baptismal record states only Johannes Frederik, names of his grandfather.