Basic type calculation- part 1