Refactored into a class, SS can now be used a code library