Implemented a command to add a method to a file