SMS: Theory of functions