First attempt at writing ship cost method