added pattern finding and fibonacci fuctions