added class constructor