to build the coding logic