extracted fragment class into a separate source file