added safety plan class with nscoding