changed AB.create to take an object