For libraries first introduce constructor, then constants, then factory methods and finally prototype methods
Replace switch-case with object