First code piece

This is first and very inaccurate piece of code that i made. The goal of
this piece is to calculate properties of a ship using information about
ship's components.