Split functions into class's