Code done in udacity lessons