code for basic calculating saley is done, started with design