adds specs for accessors and initialize