Started writing  the service layer.