added Views class to get weights.