Attempt to get it working (compile error). Consider using OOP