My code the assignment

Adapted code from "makeVector".