changed Cat to function that creates cat objects