Complete extract_views() mehtod