R Code Alternatives - directory and hw2p4 code

yay! Homework 2, Problem 4.