the_input reviewed & tests added