implemented has_one
id is now returned by attributes method