First attempt to problem 305 // Don't ask why