WIP - Convert views functions in classes.