It is not possible to create a method inside the method