Attempted solution at the First Challenge