functions vs classes and basic syntax