ex12 implementation of Math, Sys, Keyboard, Output