Fixed classes visibility, use of diamond operator

class -> public class
constructor() -> public constructor()