Fixing the identation and removing the init function by declaring the initialisation in the class