Basic structure and substring implemented