Fix exports in animal.erl and syntax errors in dynamic.erl