make first example fully working