Added base code from lab2.