Updated child and parent __set_state() methods to accept same parameters