boat : implemented the whole class