using list for inputs
Merge pull request #4 from mattonem/refactoring

using list for inputs