HW5 exercise 2: Ring/Parsable instances for Mod5