first attempt at a solution