real solution to ex3-2
fix list parsing
fix solution