improved first example