template implementation of fibonacci series