Fixed some variable declarations, fixed the variable assignment using the array named mixed and added another example of a function declaration