Redefined Service to contain an API class