Doesnt compile but approching solution for Take