Adding working fragments code