Decided on implementation, now attempting recursive function.