Built API class, removed api calls from View Controller