Written the pki exercise