fixxed word class, moved main to main.cpp