add while and do while snippet