Introduce solution for #49.