Code from cs50 introduction to computer science