changed to C++

init() & print() broken but getting better