Moved fragments into their own classes