Possible solutions for exercise “analyse MyDouble”