Simple implementation for Io day 2 problem 7