Implement some basic function