init with classes