Update data science solution

Find a way not to need this weird array construction at the end. Come talk to me for ideas if necessary.