tdd the api

New start with api to drive design