Drafted the wolf-goat-cabbage functional solution part