Moved functions.dart to lib folder

Additionnal fix on number 6.5