typo list has extend method not extends.