all tutorial code up to 4b lesson