Solution to cat vs dogs