fix to avoid multiple definition error

interesting side note:
any function defined inside of a class definition is automatically
treated as if it has the inline keyword.