Function Modeling: A Study of Sequential Model Completion Based on Count and Chaining of Functions