Define functions to create episodes