Solutions to the Core Ruby course tasks