Added Input class, closes #7