Formatted code
Implemented Console (basic version)