Adding working version of the nested lists problem