Created superclass for fragments
Rewrote structure of fragments
Cleaned up Rest class