Simple JSON api homework assignment