Add step by step definition of a function