restructured in separate js files and added translation exercise in both french and english