Add sample code generated from vala 22