implements simple cipher challenge