Okay day one done, part 2 was tricky and my solution seems hacky but it works solution.rb