Adding arrows functions in classes