Solution for OR gates