fixed a clear logical error in my skeleton code (not sure what i was thinking). also added a little skeleton code.