VB.NET code with class

Using classes in Invoke Code Vb.Net not working.
GOAL: return JSON object with firstname, lastname

Class Employee
Public firstName As String
Public lastName As String
End Class

Sub Main()

Dim temp As Employee= New Employee()	

output=temp  'output is out variable of type object

End Sub

@Anil_G @vishal.kp @Manju_Reddy_Kanughula @Palaniyappan @Yoichi @Jithesh_R @A_Learner @Shubham_Kinge @supermanPunch @arjunshenoy @Srini84 @ppr

Try this

Sub Main()
    Dim temp As Employee = New Employee()    
    temp.firstName = "Donald"
    temp.lastName = "Trump"
    Console.WriteLine(temp.firstName & " " & temp.lastName) ' output the values to the console
End Sub

Is ensured that the class definition of Employee is integrated within the Project?