copied until minute 46 of the tutorial - not working