Which of these is a preposition in this sentence?
Dolly cut the cake with a knife, so everyone could have a piece.