import pickle


def save_model(model, filepath="models/"):
    """Save a trained model to filepath (e.g. 'model/filename')

    Args:
        model (var): variable-held trained model (e.g. Linear_Regression)
        filepath (str): path to save model (excluding file extension)

    Returns:
        msg (str): confirmation message
    """
    pickle.dump(model, open(f"{filepath}.sav", "wb"))
    return f"model saved to: {filepath}.sav"