use pattern match for fibonacci