Declare functions as actual object properties instead of in prototype