Bad solution in my opinion, but solved fast