def extractFeatures(pages, dataset):
    """
    Extract the amount of page views for each student for each page
    \n
    :param pages: A list of all the (unique) pages to use \t
    :type pages: list \n
    :param dataset: A list of dictionaries, each dictionary representing one student and having at least the key "pages" \t
    :type dataset: [dict] \n
    :returns: A dictionary with two keys: "scores" and "features" \t
    :rtype: dict \n
    """
    scores = list()
    pageslists = dict()
    for page in pages:
        pageslists[page] = list()

    for datapoint in dataset:
        scores.append(datapoint.get("score"))
        for page in pages:
            if page in datapoint["pages"]:
                pageslists[page].append(datapoint["pages"][page])
            else:
                pageslists[page].append(0)

    return {"scores": scores, "features": pageslists}