some exercism (6)