Binary exercise | 1st iteration