added dynamic create method to core data