Code written while reading the intro chap