added constructor class