Pracownia 7. Added conversion.
Pracownia 6. Added exception handling.