Fix missing return type.

Add return type to each function definition.