Converting shoreToSh function started