add fibonacci sample 2 to use switch statement