used for udacity tutorial