My very bad code