finally got the class constructor