Making custome blueprint by c++ in UE4.16

Hi . Sorry if my question is been asked before but the examples i found for making a blueprint function library by c++ couldn’t be built in my visual studio 2017 because they have been made for older versions not for UE4.16 . I want to know what exactly should i Write in h and cpp files . If anyone could give me a working example i would be so thankful .

#.h

#pragma once

#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "LIB_Bp.generated.h"

/**
 * A simple blueprint library
 */
UCLASS()
class MYGAME_API ULIB_Bp : public UBlueprintFunctionLibrary
{
	GENERATED_BODY()
	
public:
	UFUNCTION(BlueprintCallable)
	static void MyAwesomeFunction();
		
};

#.cpp
#include “LIB_Bp.h”

void ULIB_Bp::MyAwesomeFunction() 
{

}

Thanks a lot . It worked .