Deleted double class, reformated the code