Fragment class modified