Refactor guide sourse coide to look more sexy