Renaming function to be object notation