Refactored name and added constructor for Server class