Please review my code,Can i make it even more efficient.Give me some advices to reduce the number of lines of code(Double sided arrow quesstion)