added class instatiation and method return values