moved fragement into its own class