implemented Library#to_h