Add code to the constructor and some class vars