API homework for week3