Fixing compiling problem in boat example.
OBS: Constructors must not have public/private prefix.