Silly realisation of homework 6