format
Refactored + done testing User class

Signed-off-by: Chan Jun Wei <chanjunweimy@gmail.com>