datatype and function samples