beginning code.