Writing the Island class