Implement Fragment class.