Refactored Fragment to have static function to return a new instance of their class