Refactored fragments into their own classes.