added return type for get and newInstance method