Fix #18 & Fix #20

Fix #18 get_class() called without object from outside a class
Fix #20 Call to a member function get_input() on a non-object