Remove object encoder decoder from constructors and extend adding specific functions