#5 partially fixed, this was brilliant, now there is only a problem with brackets