write spec and solution for remove_nils