More or less working prototype(still gavnacod)