moved solutions from notebooks to scripts