adding protocols for saying something;
adding a Dog and Animal classes;
refactored main into separate methods