Created inp (need a better name...), and a test case