Please read the following table in HTML format from a webpage and then answer the question in detail according to the table. Each table cell is defined by a <td> and a </td> tag. Each table row starts with a <tr> and ends with a </tr> tag. 'rowspan=m' and 'colspan=n' represents a cell spaning over 'm' rows and 'n' columns.

Webpage title:
Zachary Dylan Smith
Table title:
Filmography
Table:
<table id='hittask' contenteditable='False'>
<tr> <th colspan=1 rowspan=1 > Year </th><th colspan=1 rowspan=1 > Title </th><th colspan=1 rowspan=1 > Role </th><th colspan=1 rowspan=1 > Other notes </th></tr>
<tr> <th colspan=4 rowspan=1 > Film </th></tr>
<tr> <td colspan=1 rowspan=1 > 2007 </td><td colspan=1 rowspan=1 > Death Sentence </td><td colspan=1 rowspan=1 > Young Brendan Hume </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 > 2008 </td><td colspan=1 rowspan=1 > Rex </td><td colspan=1 rowspan=1 > Young Chase </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 > 2008 </td><td colspan=1 rowspan=1 > Meet the Spartans </td><td colspan=1 rowspan=1 > 10-year-old Leonidas </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <th colspan=4 rowspan=1 > Television </th></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=1 > 2004 </td><td class="highlighted"  colspan=1 rowspan=1 > 3: The Dale Earnhardt Story </td><td class="highlighted"  colspan=1 rowspan=1 > Dale Earnhardt </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 > 2006 </td><td class="highlighted"  colspan=1 rowspan=1 > One Tree Hill </td><td class="highlighted"  colspan=1 rowspan=1 > Young Dan </td><td colspan=1 rowspan=1 > Three episodes </td></tr>
</table>
Question:
What roles did Zachary Dylan Smith play in his 2004 and 2006 movies?
Answer:
Zachary Dylan Smith was cast as Dale in the TV production 3: The Dale Earnhardt Story (2004) and played a role in the TV series One Tree Hill as young Dan in 2006.