Update Code to changes in class