Working through ruby classes and file methods