added c'tor to class1