First non-crashing prototype with working input