Pulled out the fragment clasess to their own .java files.