def hom2cart(points):
    """ Transforms from homogeneous to cartesian coordinates.

    Args:
      points: a np array of points in homogenous coordinates

    Returns:
      points_hom: a np array of points in cartesian coordinates
    """

    #
    # You code here
    #
    cart = points[0:-1, :] / points[-1, :]
    return cart