sample fragment code