finishing second part of the tutorial