William Frederick with his cousin Ludwig Ferdinand of Prussia.