Added base version of the code