fixed the bug, created the service to hold the earning data.