Screenshot

Hi all,

This was my second try (missed those pesky “;”-s at the end of some lines, but got the actual logic right at the first time.