seed code for functional programming