Removed init and dealloc method to make the code shorter