second commit

code and example input