Formatted and linted the code