created a initial api class