Using vector variables and changing variables in ODEs