Change methods in User class into static.