Convert function into propertires