Design a Python program to extract data from the given dataset.
[
{ 
"name": "John", 
"age": 20, 
"hobby": "soccer"
},
{ 
"name": "Sarah", 
"age": 19, 
"hobby": "dancing" 
},
{ 
"name": "Dave", 
"age": 21, 
"hobby": "painting" 
}
]
def extract_data(dataset):
    name_list = []
    age_list = []
    hobby_list = []
    
    for entry in dataset:
        name_list.append(entry["name"])
        age_list.append(entry["age"])
        hobby_list.append(entry["hobby"])
    
    return name_list, age_list, hobby_list