added loop to build the list and iterate through it; works!
added TODOs