Answer to small warm-up programs