For peer review

Updated the sample makeVector functions to perform the desired
functions. Verbose comments were added to demonstrate understanding of
the parts and scoping of data.