Homework

try moving this duplicated init code into a before function.