trying to figure out function

Writing normal function, trying to nail down structure.