Table schema:
CREATE TABLE table_27155243_4 (episode__number INTEGER, written_by VARCHAR)

Question: What episode was written by Matt Maclennan?
SQL: SELECT MAX(episode__number) FROM table_27155243_4 WHERE written_by = "Matt MacLennan"