code from night 1 for beginners