Fix #18 get_class() called without object from outside a class
Fix #20 Call to a member function get_input() on a non-object
Merge pull request #19 from Sama34/fix-18

Fix #18 & Fix #20