Genericized the Accessor class