Modeling Real World Settings with Functions