cornelios_inverse_k_remix [medium challenge]