added Api class