Calling methods from command line