Added initial exploration of rec algorithm